package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffMobileCurrentUserEmploymentRecordDto
 * @使用场景
 */
@Data
public class BffMobileCurrentUserEmploymentRecordDto implements Serializable {

    /**
     * 就职记录ID
     */
    @ApiModelProperty("就职记录ID")
    private String inductionRecordId;

    /**
     * 部门ID
     */
    @ApiModelProperty("部门ID")
    private String deptId;

    /**
     * 身份人员ID
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 身份人员编号
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 账号ID
     */
    @ApiModelProperty("账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 备注首位字母
     */
    @ApiModelProperty("备注首位字母")
    private String firstLetter;

    /**
     * 部门简称
     */
    @ApiModelProperty("部门简称")
    private String deptShortName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffMobileCurrentUserEmploymentRecordDto that = (BffMobileCurrentUserEmploymentRecordDto) o;
        return inductionRecordId == that.inductionRecordId && deptId == that.deptId && originalRoleMemberId == that.originalRoleMemberId && roleMemberCode == that.roleMemberCode && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && firstLetter == that.firstLetter && deptShortName == that.deptShortName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), inductionRecordId, deptId, originalRoleMemberId, roleMemberCode, userId, userFace, idCardName, nickName, firstLetter, deptShortName);
    }

}
